﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="GerenciarProjeto.aspx.cs" Inherits="CursoUNICEUB.GerenciarProjeto" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    </asp:ScriptManagerProxy>
    <asp:Label ID="lblNomeProjeto" runat="server" Font-Underline="True" Font-Size="X-Large" />
    &nbsp;-
    <asp:HyperLink ID="hplVisaoProduto" runat="server">HyperLink</asp:HyperLink>
    <br />
    <asp:HyperLink ID="hplIniciarProjeto" runat="server" Visible="False">Iniciar</asp:HyperLink>
    <br />
    <table style="width: 100%;">
        <tr>
            <td class="style1">
                <asp:Label ID="lblInicioText" runat="server" Text="Início :"></asp:Label>
            </td>
            <td class="style3">
                <asp:Label ID="lblInicio" runat="server" Text="Label"></asp:Label>
            </td>
            <td class="style2">
                <asp:Label ID="Label2" runat="server" Text="Valor :"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblValor" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <asp:Label ID="Label3" runat="server" Text="PO :"></asp:Label>
            </td>
            <td class="style3">
                <asp:Label ID="lblPO" runat="server" Text="Label"></asp:Label>
            </td>
            <td class="style2">
                <asp:Label ID="Label4" runat="server" Text="SM :"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lblSM" runat="server" Text="Label"></asp:Label>
            </td>
        </tr>
    </table>
    <br />
    <br />
    <asp:Panel ID="Panel2" runat="server" CssClass="collapsePanelHeader" Height="30px">
        <div style="padding: 5px; cursor: pointer; vertical-align: middle;">
            <div style="float: left;">
                Equipe</div>
            <div style="float: left; margin-left: 20px;">
                <asp:Label ID="Label5" runat="server">(Mostrar Equipe...)</asp:Label>
            </div>
            <div style="float: right; vertical-align: middle;">
                <asp:ImageButton ID="Image1" runat="server" ImageUrl="~/Img/expand_blue.jpg" AlternateText="(Show Details...)" />
            </div>
        </div>
    </asp:Panel>
    <asp:Panel ID="Panel1" runat="server" CssClass="collapsePanel" Height="0">
        <asp:DropDownList runat="server" ID="ddlUsuario" DataTextField="Nome" DataValueField="Codigo">
        </asp:DropDownList>
        &nbsp;
        <asp:ImageButton ID="btnAdicionarUsuario" runat="server" AlternateText="Adicionar Usuário"
            ImageUrl="~/Img/adicionar.gif" onclick="btnAdicionarUsuario_Click" />
        <br />
        <asp:GridView ID="grvEquipe" runat="server" CellPadding="4" ForeColor="#333333" 
            GridLines="None">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
    </asp:Panel>
    <ajaxToolkit:CollapsiblePanelExtender ID="cpeDemo" runat="Server" TargetControlID="Panel1"
        ExpandControlID="Panel2" CollapseControlID="Panel2" Collapsed="True" TextLabelID="Label1"
        ImageControlID="Image1" ExpandedText="(Hide Details...)" CollapsedText="(Show Details...)"
        ExpandedImage="~/Img/collapse_blue.jpg" CollapsedImage="~/Img/expand_blue.jpg"
        SuppressPostBack="true" SkinID="CollapsiblePanelDemo" />

    <asp:Panel ID="Panel3" runat="server" CssClass="collapsePanelHeader" Height="30px">
        <div style="padding: 5px; cursor: pointer; vertical-align: middle;">
            <div style="float: left;">
                Épocas</div>
            <div style="float: left; margin-left: 20px;">
                <asp:Label ID="Label1" runat="server">(Mostrar Épocas...)</asp:Label>
            </div>
            <div style="float: right; vertical-align: middle;">
                <asp:ImageButton ID="ImgBtnExpandEpoca" runat="server" ImageUrl="~/Img/expand_blue.jpg" AlternateText="(Show Details...)" />
            </div>
        </div>
    </asp:Panel>
    <asp:Panel ID="Panel4" runat="server" CssClass="collapsePanel" Height="0">
        <asp:GridView ID="grvEpoca" runat="server" CellPadding="4" ForeColor="#333333" 
            GridLines="None">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
        <asp:HyperLink ID="hplEpoca" runat="server">Nova época</asp:HyperLink>
    </asp:Panel
    >
    <ajaxToolkit:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="Server" TargetControlID="Panel4"
        ExpandControlID="Panel3" CollapseControlID="Panel3" Collapsed="True" TextLabelID="Label1"
        ImageControlID="ImgBtnExpandEpoca" ExpandedText="(Hide Details...)" CollapsedText="(Show Details...)"
        ExpandedImage="~/Img/collapse_blue.jpg" CollapsedImage="~/Img/expand_blue.jpg"
        SuppressPostBack="true" SkinID="CollapsiblePanelDemo" />


         <asp:Panel ID="Panel5" runat="server" CssClass="collapsePanelHeader" Height="30px">
        <div style="padding: 5px; cursor: pointer; vertical-align: middle;">
            <div style="float: left;">
                Sprints</div>
            <div style="float: left; margin-left: 20px;">
                <asp:Label ID="Label6" runat="server">(Mostrar Sprints...)</asp:Label>
            </div>
            <div style="float: right; vertical-align: middle;">
                <asp:ImageButton ID="imgBtnMostrarSprint" runat="server" ImageUrl="~/Img/expand_blue.jpg" AlternateText="(Show Details...)" />
            </div>
        </div>
    </asp:Panel>
    <asp:Panel ID="Panel6" runat="server" CssClass="collapsePanel" Height="0">
        <asp:GridView ID="grvSprint" runat="server" CellPadding="4" ForeColor="#333333" 
            GridLines="None" AutoGenerateColumns="False" 
            DataSourceID="SprintDataSource">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField DataField="Numero" HeaderText="Numero" 
                    SortExpression="Numero" ReadOnly="True" />
                <asp:BoundField DataField="Inicio" HeaderText="Inicio" 
                    SortExpression="Inicio" ReadOnly="True" />
                <asp:BoundField DataField="Fim" HeaderText="Fim" SortExpression="Fim" 
                    ReadOnly="True" />
                <asp:BoundField DataField="Capacidade" HeaderText="Capacidade" 
                    SortExpression="Capacidade" ReadOnly="True" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
        <asp:LinqDataSource ID="SprintDataSource" runat="server" 
            ContextTypeName="FastDATA.DCCursoDataContext" EntityTypeName="" 
            Select="new (Numero, Inicio, Fim, Capacidade)" TableName="DESprints" 
            Where="CodigoProjeto == @CodigoProjeto">
            <WhereParameters>
                <asp:QueryStringParameter DefaultValue="0" Name="CodigoProjeto" 
                    QueryStringField="codigo" Type="Int32" />
            </WhereParameters>
        </asp:LinqDataSource>
        <asp:Button ID="btnGerarSprint" runat="server" onclick="btnGerarSprint_Click" 
            Text="Gerar Nova Sprint" />
        <ajaxToolkit:ConfirmButtonExtender ID="btnGerarSprint_ConfirmButtonExtender" 
            runat="server" ConfirmText="Deseja gerar uma nova sprint?" Enabled="True" 
            TargetControlID="btnGerarSprint">
        </ajaxToolkit:ConfirmButtonExtender>
    </asp:Panel
    >
    <ajaxToolkit:CollapsiblePanelExtender ID="CollapsiblePanelExtender2" runat="Server" TargetControlID="Panel6"
        ExpandControlID="Panel5" CollapseControlID="Panel5" Collapsed="True" TextLabelID="Label1"
        ImageControlID="imgBtnMostrarSprint" ExpandedText="(Hide Details...)" CollapsedText="(Show Details...)"
        ExpandedImage="~/Img/collapse_blue.jpg" CollapsedImage="~/Img/expand_blue.jpg"
        SuppressPostBack="true" SkinID="CollapsiblePanelDemo" />
</asp:Content>
